package com.copm.ifm.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户-权限关联关系实体类
 *
 * TODO fixed
 * @Author zzf
 * @Date 8:46 2020/7/22
 */
@Getter
@Setter
@TableName("sys_user_role")
@ApiModel("用户-权限关联关系实体类")
public class SysUserRole implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id", dataType = "Integer")
    private Integer userId;

    @ApiModelProperty(value = "权限id", dataType = "Integer")
    private Integer roleId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private Integer createBy;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
